#include <stdio.h>
#include <stdbool.h>
#include <ctype.h>
#include <string.h>
#define SIZE 100
bool is_palindrome(const char *message);
int main(void)
{
    char msg[SIZE];
    printf("Enter a message: ");
    char ch;
    int i;
    for (i = 0; i < SIZE && (ch = getchar()) != '\n';) {
        ch = tolower(ch);
        if (ch >= 'a' && ch <= 'z')
            msg[i++] = ch;
    }
    if (is_palindrome(msg))
        printf("Palindrome\n");
    else
        printf("Not a palindrome\n");
    return 0;
}
bool is_palindrome(const char *message) {
    for (const char *start = message, *end = message - 1 + strlen(message); start < end; start++, end--)
        if (*start != *end)
            return false;
    return true;
}
